using System;
using Microsoft.SPOT;

namespace OST.Motor
{
    /// <summary>
    /// possible end-sensor-values
    /// </summary>
    public enum enumEndSensorType
    {
        None = -1,
        EndDown = 0,
        EndUp = 1
    }

    /// <summary>
    /// enum-translator for <see cref="enumEndSensorType"/>
    /// </summary>
    public static class enumEndSensorTypeTranslator
    {
        /// <summary>
        /// translates the concrete-enum to an readable-string
        /// </summary>
        /// <param name="endSensorType">enum-value</param>
        /// <returns>readable-string</returns>
        public static String Translate(enumEndSensorType endSensorType)
        {
            switch (endSensorType)
            {
                case enumEndSensorType.None:
                    return "None";
                case enumEndSensorType.EndDown:
                    return "EndDown";
                case enumEndSensorType.EndUp:
                    return "EndUp";
                default:
                    return "n.def.";
            }
        }
    }
}
